import request from '/@/utils/request';



/**
 * 后端控制菜单模拟json，路径在 https://gitee.com/lyt-top/vue-next-admin-images/tree/master/menu
 * 后端控制路由，isRequestRoutes 为 true，则开启后端控制路由
 * @method getMenuAdmin 获取后端动态路由菜单(admin)
 * @method getMenuTest 获取后端动态路由菜单(test)
 */

export function getAdminMenuAll() {
	return request({
		url: '/v1/admin/menu/all',
		method: 'get',
	})
}

export function getAdminMenuAuth() {
	return request({
		url: '/v1/admin/menu/auth',
		method: 'get',
	})
}

export function AdminRegMenu(data:Object) {
	return request({
		url: '/v1/admin/menu/reg',
		method: 'post',
		data:data,
	})
}
